package com.photoeditor.demo.model.image.gl;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.photoeditor.demo.ui.widget.image.TiledBitmapView;

public class TileViewCache {
	
	public TileViewCache(Context context){
	}
	
	public TiledBitmapView getView(Context context){
		TiledBitmapView view = new TiledBitmapView(context);
		return view;
	}
	
	public void dealEPosition(ViewGroup group, int position){
		int num = group.getChildCount();
		for(int i = 0 ; i < num ; i++){
			View v = group.getChildAt(i);
			if(v instanceof TiledBitmapView){
				TiledBitmapView view = (TiledBitmapView)v;
				if(view.getPosition() == position){
//					view.getImageView().resume();
				} else{
//					view.getImageView().cancel();
				}
			}
		}
	}
}
